#!/usr/bin/env python 
#-*- coding:utf-8 -*-
l1 =  [213,'321',123,123,[2.1,'sdad',123,234,456,678],123,321321,'zhqng']
first_list = [] #创建一个记录索引的列表
second_list = [] #创建第二个（嵌套的那个）用于记录索引的列表
for i in l1:
    if type(i) == int:
        first_list.append(l1.index(i))  #求出关于i也就是数字的索引
    elif type(i) == list:
        for j in i :
            second_list.append(i.index(j))
count = 0
for i in first_list:
    i -= count
    l1.pop(i)
    count += 1
# for i in second_list:
print(l1)
    
    
    
